﻿<UserControl x:Class="MeshDiagram3D.MeshDiagramViewport3D"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Viewport3D Name="mainViewport" ClipToBounds="True"     Grid.Column="0"  Grid.Row="0" MouseLeftButtonDown="mainViewport_MouseLeftButtonDown">
            <Viewport3D.Camera>
                <PerspectiveCamera
          FarPlaneDistance="100"
          LookDirection="-11,-10,-9"
          UpDirection="0,1,0"
          NearPlaneDistance="1"
          Position="11,10,9"
          FieldOfView="70" />
            </Viewport3D.Camera>
            <ModelVisual3D>
                <ModelVisual3D.Content>
                    <DirectionalLight
                            Color="White"
                            Direction="-2,-3,-1" />
                </ModelVisual3D.Content>
            </ModelVisual3D>
        </Viewport3D>
        <Canvas Name="mainViewportCanvas" ClipToBounds="True" Grid.Column="0" Grid.Row="0" ></Canvas>

    </Grid>
</UserControl>
